import request from '@/utils/request'

export function login(params) {
  return request.post('/api/auth/login', params)
}


export function logout(params) {
  return request.post('/api/auth/logout', params)
}

export function refreshToken(params) {
  return request.post('/api/auth/refresh', params)
}

export function getUserInfo() {
  return request.post('/api/auth/profile')
}
